<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    <script>

        window.onload =  function f() {
            var myDate = new Date();
            document.getElementById('currentime').innerHTML = myDate;
            setTimeout(arguments.callee,1000);
        }

        function loadPage() {
            var targetURL = document.getElementById('url').value;
            console.log(targetURL);
            document.getElementById('iframePosition').src=targetURL; 
        }

      
    </script>


    <div>
        <p>请输入要加载的地址:<span id="currentime"></span></p>
        <p>
            <input type="text" id="url" >
            <input type="button" value="递交" onclick=loadPage()>
        </p>
    </div>

    <div>
        <h3>
            加载页面的位置
        </h3>
        <iframe style="width: 100%; height: 600px;" id="iframePosition" ></iframe>
    </div>
</body>

</html>